package com.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.beans.FlowerInfo;

@Mapper
@Repository
public interface FlowerMapper {
		//添加鲜花
		int add_flower(FlowerInfo flower); 
	 
		//根据id查询
		FlowerInfo get_flower(int id);
		
		//删除鲜花
		int del_flower(int id);
		
		//更新鲜花
		int update_flower(FlowerInfo flower); 
		
		//查询所有
		List<FlowerInfo >select_all();
		
	    List<FlowerInfo> flowerList(@Param("flowerName") String flowerName);
}
